package com.Fate.service;

import com.Fate.common.Result;

import java.util.Map;

public interface IcustomerService {
    /**
     * 分页查询
     * @param params
     * @param pageNo
     * @param pageSize
     * @return
     */
    Result queryPage(Map<String, String> params, Integer pageNo, Integer pageSize);

    /**
     * 新增一个客户
     * @param name
     * @param phone
     * @param sex
     * @param company
     * @param userId
     * @return
     */
    Result add(String name, String phone, Integer sex, String company,Integer userId);


    Result update(String id ,String name, String phone, Integer sex, String company,Integer userId);

    Result deleted(String id);

    Result batchSetSaleman(String userId, String[] cids);

    Result addVisitLog (String id, String name, Integer userId, String realname,String visitTime,String descp);
}
